package models

import (
	"encoding/xml"
	"time"
)

//微信公众号文本请求消息
type WxRecvMsgTextReq struct {
	XMLName      xml.Name `xml:"xml"`
	ToUserName   string   `xml:"ToUserName"`
	FromUserName string   `xml:"FromUserName"`
	CreateTime   int64    `xml:"CreateTime"`
	MsgType      string   `xml:"MsgType"`
	Content      string   `xml:"Content"`
	MsgId        int64    `xml:"MsgId"`
}

//加密方式的请求
type WxRecvMsgEncryptRequestBody struct {
	XMLName    xml.Name `xml:"xml"`
	ToUserName string
	Encrypt    string
}

type TextRequestBody struct {
	XMLName      xml.Name `xml:"xml"`
	ToUserName   string
	FromUserName string
	CreateTime   time.Duration
	MsgType      string
	Url          string
	PicUrl       string
	MediaId      string
	ThumbMediaId string
	Content      string
	MsgId        int
	Location_X   string
	Location_Y   string
	Label        string
}

//创建房间
type WxCreateRoomReq struct {
	OpenId     string `json:"open_id"`
	UnionId    string `json:"union_id"`
	ScriptName string `json:"script_name"`
}

//加入房间
type WxJoinRoomReq struct {
	OpenId  string `json:"open_id"`
	UnionId string `json:"union_id"`
	RoomId  string `json:"room_id"`
}

type WxExitRoomReq struct {
	OpenId  string `json:"open_id"`
	UnionId string `json:"union_id"`
}
